'Declaration
<NotNullAttribute()> Public Overloads Shared Function Combine (Of TSecondValue,TResultValue)( _ ByVal first As ValueResult, _ ByVal second As ValueResult(Of TSecondValue), _ ByVal combineValuesFunction As Func(Of Object,TSecondValue,TResultValue) _ ) As ValueResult(Of TResultValue)
'Usage
Dim first As ValueResult Dim second As ValueResult(Of TSecondValue) Dim combineValuesFunction As Func(Of Object,TSecondValue,TResultValue) Dim value As ValueResult(Of TResultValue) value = ValueResult.Combine(Of TSecondValue, TResultValue)(first, second, combineValuesFunction)
[NotNull()] public static ValueResult<TResultValue> Combine<TSecondValue,TResultValue>( ValueResult first, ValueResult<TSecondValue> second, Func<object,TSecondValue,TResultValue> combineValuesFunction )
[NotNull()] public: static ValueResult<TResultValue^>^ Combinegeneric<typename TSecondValue> generic<typename TResultValue> ( ValueResult^ first, ValueResult<TSecondValue^>^ second, Func<Object^,TSecondValue^,TResultValue^>^ combineValuesFunction )
Parameters
- first
- The first value result.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - second
- The second value result.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - combineValuesFunction
- The function that combines the values of the first and second value result into a value of the resulting value result.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- TSecondValue
- The type of value of the second value result.
- TResultValue
- The type of value of the resulting value result.
Return Value
This method never returns null
(Nothing
in Visual Basic).